projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ec3f6e
)
socfpga: timer actually counts down
author
Pavel Machek
<
[email protected]
>
Sun, 13 Jul 2014 11:10:45 +0000
(13:10 +0200)
committer
Tom Rini
<
[email protected]
>
Mon, 14 Jul 2014 15:21:35 +0000
(11:21 -0400)
Timer on cyclone5 actually counts down. It took me a while to figure
out, as timer counting in wrong direction actually _can_ be used, it
just appears to tick at extremely high frequency in u-boot.
The bug was introduced in commit
23ab7ee0ffa9d5efd0b4ad830befba306d24a327
.
Signed-off-by: Pavel Machek <
[email protected]
>
Acked-by: Marek Vasut <
[email protected]
>
include/configs/socfpga_cyclone5.h
patch
|
blob
|
history
diff --git
a/include/configs/socfpga_cyclone5.h
b/include/configs/socfpga_cyclone5.h
index 7646a857c33f301fd9e874ba482cafd36360560a..262e7445f657f6b87bc1719621616233e9e6e24c 100644
(file)
--- a/
include/configs/socfpga_cyclone5.h
+++ b/
include/configs/socfpga_cyclone5.h
@@
-202,6
+202,7
@@
#else
#define CONFIG_SYS_TIMER_RATE 25000000
#endif
+#define CONFIG_SYS_TIMER_COUNTS_DOWN
#define CONFIG_SYS_TIMER_COUNTER (CONFIG_SYS_TIMERBASE + 0x4)
#define CONFIG_ENV_IS_NOWHERE